<%- @page_title = _("Viewing Deadlines for %s", h(@teaching.title)) -%>
<h2><%= @page_title %></h2>
<%- unless @deadlines.empty? -%>
  <ul>
    <%- @deadlines.each do |d| -%>
      <li><%= link_to(h(d.title), deadline_path(@project, @teaching, d)) %> (<%= _("Ends") %>: <%= d.end.formatted %>)</li>
    <%- end -%>
  </ul>
<%- else -%>
  <p><%= _('No deadline has been added, yet.') %></p>
<%- end -%>
<%- if @logged_user.is_teacher? -%>
  <hr />
  <%= link_to(_('Add a new deadline'), new_deadline_path(@project, @teaching)) %>
<%- end -%>
<hr />
<%= link_to(_("&laquo; Back to class"), class_path(@project, @teaching)) %>